package com.fq.domain;

import com.fq.ioc.annotation.Component;
import com.fq.ioc.annotation.Value;

/**
 * Created by jifang on 15/12/31.
 */
@Component(id = "id2")
public class User {

    @Value("46")
    private int id;

    @Value("翡青")
    private String name;

    @Value("feqing - mima")
    private String password;

    public int getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", password='" + password + '\'' +
                '}';
    }
}
